package model;

public class Category {
    /**
     * 商品分类
     */
    /**
     * 分类编号
     */
    private int no;

    /**
     * 分类名称
     */
    private String name;

    public Category(int no, String name){
        this.no = no;
        this.name = name;
    }


    // getter / setter


    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "【商品分类】 " +
                "编号：" + no +
                ", 分类名称：" + name;
    }
}

